package com.cssnj.portal.domain.manage;

import javax.persistence.*;
import java.io.Serializable;
import java.sql.Timestamp;
import java.util.Arrays;
import java.util.Objects;

/**
 * 应用基础信息
 *
 * @author Arthur
 * @version 1.0
 * @since 2018/9/11 22:02
 */
@Entity
@Table(name = "YY_JCXX")
public class YyJcxxEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    private String yyId;
    private String yyMc;
    private String ywMc;
    private String lrryId;
    private String xgryId;
    private Timestamp lrSj;
    private Timestamp xgSj;
    private String yyMs;
    private String yyGw;
    private byte[] yyTb1;
    private byte[] yyTb2;
    private byte[] djbSmj;
    private String fwcsId;
    private String cjrId;
    private Timestamp fbSj;
    private String shrId;
    private Timestamp shSj;
    private String tyrId;
    private Timestamp tySj;
    private String shYj;
    private String tyYy;
    private String yyztDm;
    private String fbrId;
    private String yylbDm;
    private String sqfsDm;

    @Id
    @Column(name = "YY_ID")
    public String getYyId() {
        return yyId;
    }

    public void setYyId(String yyId) {
        this.yyId = yyId;
    }

    @Basic
    @Column(name = "YY_MC")
    public String getYyMc() {
        return yyMc;
    }

    public void setYyMc(String yyMc) {
        this.yyMc = yyMc;
    }

    @Basic
    @Column(name = "YW_MC")
    public String getYwMc() {
        return ywMc;
    }

    public void setYwMc(String ywMc) {
        this.ywMc = ywMc;
    }

    @Basic
    @Column(name = "LRRY_ID")
    public String getLrryId() {
        return lrryId;
    }

    public void setLrryId(String lrryId) {
        this.lrryId = lrryId;
    }

    @Basic
    @Column(name = "XGRY_ID")
    public String getXgryId() {
        return xgryId;
    }

    public void setXgryId(String xgryId) {
        this.xgryId = xgryId;
    }

    @Basic
    @Column(name = "LR_SJ")
    public Timestamp getLrSj() {
        return lrSj;
    }

    public void setLrSj(Timestamp lrSj) {
        this.lrSj = lrSj;
    }

    @Basic
    @Column(name = "XG_SJ")
    public Timestamp getXgSj() {
        return xgSj;
    }

    public void setXgSj(Timestamp xgSj) {
        this.xgSj = xgSj;
    }

    @Basic
    @Column(name = "YY_MS")
    public String getYyMs() {
        return yyMs;
    }

    public void setYyMs(String yyMs) {
        this.yyMs = yyMs;
    }

    @Basic
    @Column(name = "YY_GW")
    public String getYyGw() {
        return yyGw;
    }

    public void setYyGw(String yyGw) {
        this.yyGw = yyGw;
    }

    @Basic
    @Column(name = "YY_TB1")
    public byte[] getYyTb1() {
        return yyTb1;
    }

    public void setYyTb1(byte[] yyTb1) {
        this.yyTb1 = yyTb1;
    }

    @Basic
    @Column(name = "YY_TB2")
    public byte[] getYyTb2() {
        return yyTb2;
    }

    public void setYyTb2(byte[] yyTb2) {
        this.yyTb2 = yyTb2;
    }

    @Basic
    @Column(name = "DJB_SMJ")
    public byte[] getDjbSmj() {
        return djbSmj;
    }

    public void setDjbSmj(byte[] djbSmj) {
        this.djbSmj = djbSmj;
    }

    @Basic
    @Column(name = "FWCS_ID")
    public String getFwcsId() {
        return fwcsId;
    }

    public void setFwcsId(String fwcsId) {
        this.fwcsId = fwcsId;
    }

    @Basic
    @Column(name = "CJR_ID")
    public String getCjrId() {
        return cjrId;
    }

    public void setCjrId(String cjrId) {
        this.cjrId = cjrId;
    }

    @Basic
    @Column(name = "FB_SJ")
    public Timestamp getFbSj() {
        return fbSj;
    }

    public void setFbSj(Timestamp fbSj) {
        this.fbSj = fbSj;
    }

    @Basic
    @Column(name = "SHR_ID")
    public String getShrId() {
        return shrId;
    }

    public void setShrId(String shrId) {
        this.shrId = shrId;
    }

    @Basic
    @Column(name = "SH_SJ")
    public Timestamp getShSj() {
        return shSj;
    }

    public void setShSj(Timestamp shSj) {
        this.shSj = shSj;
    }

    @Basic
    @Column(name = "TYR_ID")
    public String getTyrId() {
        return tyrId;
    }

    public void setTyrId(String tyrId) {
        this.tyrId = tyrId;
    }

    @Basic
    @Column(name = "TY_SJ")
    public Timestamp getTySj() {
        return tySj;
    }

    public void setTySj(Timestamp tySj) {
        this.tySj = tySj;
    }

    @Basic
    @Column(name = "SH_YJ")
    public String getShYj() {
        return shYj;
    }

    public void setShYj(String shYj) {
        this.shYj = shYj;
    }

    @Basic
    @Column(name = "TY_YY")
    public String getTyYy() {
        return tyYy;
    }

    public void setTyYy(String tyYy) {
        this.tyYy = tyYy;
    }

    @Basic
    @Column(name = "YYZT_DM")
    public String getYyztDm() {
        return yyztDm;
    }

    public void setYyztDm(String yyztDm) {
        this.yyztDm = yyztDm;
    }

    @Basic
    @Column(name = "FBR_ID")
    public String getFbrId() {
        return fbrId;
    }

    public void setFbrId(String fbrId) {
        this.fbrId = fbrId;
    }

    @Basic
    @Column(name = "YYLB_DM")
    public String getYylbDm() {
        return yylbDm;
    }

    public void setYylbDm(String yylbDm) {
        this.yylbDm = yylbDm;
    }

    @Basic
    @Column(name = "SQFS_DM")
    public String getSqfsDm() {
        return sqfsDm;
    }

    public void setSqfsDm(String sqfsDm) {
        this.sqfsDm = sqfsDm;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        YyJcxxEntity that = (YyJcxxEntity) o;
        return Objects.equals(yyId, that.yyId) &&
                Objects.equals(yyMc, that.yyMc) &&
                Objects.equals(ywMc, that.ywMc) &&
                Objects.equals(lrryId, that.lrryId) &&
                Objects.equals(xgryId, that.xgryId) &&
                Objects.equals(lrSj, that.lrSj) &&
                Objects.equals(xgSj, that.xgSj) &&
                Objects.equals(yyMs, that.yyMs) &&
                Objects.equals(yyGw, that.yyGw) &&
                Arrays.equals(yyTb1, that.yyTb1) &&
                Arrays.equals(yyTb2, that.yyTb2) &&
                Arrays.equals(djbSmj, that.djbSmj) &&
                Objects.equals(fwcsId, that.fwcsId) &&
                Objects.equals(cjrId, that.cjrId) &&
                Objects.equals(fbSj, that.fbSj) &&
                Objects.equals(shrId, that.shrId) &&
                Objects.equals(shSj, that.shSj) &&
                Objects.equals(tyrId, that.tyrId) &&
                Objects.equals(tySj, that.tySj) &&
                Objects.equals(shYj, that.shYj) &&
                Objects.equals(tyYy, that.tyYy) &&
                Objects.equals(yyztDm, that.yyztDm) &&
                Objects.equals(fbrId, that.fbrId) &&
                Objects.equals(yylbDm, that.yylbDm) &&
                Objects.equals(sqfsDm, that.sqfsDm);
    }

    @Override
    public int hashCode() {
        int result = Objects.hash(yyId, yyMc, ywMc, lrryId, xgryId, lrSj, xgSj, yyMs, yyGw, fwcsId, cjrId, fbSj, shrId, shSj, tyrId, tySj, shYj, tyYy, yyztDm, fbrId, yylbDm, sqfsDm);
        result = 31 * result + Arrays.hashCode(yyTb1);
        result = 31 * result + Arrays.hashCode(yyTb2);
        result = 31 * result + Arrays.hashCode(djbSmj);
        return result;
    }
}
